﻿//
// Created: 2018/9/6
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.Util
{
    public class  CategoryAttrGroups:IEntity
    {

        ///<summary>
        ///属性组id
        ///<summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int AttrGroupId  { get; set; }
        ///<summary>
        ///分类id
        ///<summary>
        public int CategoryID  { get; set; }
        ///<summary>
        ///组名
        ///<summary>
        public string Name  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int DisplayOrder  { get; set; }
        /// <summary>
        /// 0 显示属性群组(默认） 大于1 非显示属性群组(系统用） 比如 快递费 1 ,保险费 2 依次类推
        /// </summary>
        public int  CategoryType { get; set; }

       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}